home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultimate Civil War Collection: Civil War Classics
/
Ultimate Civil War Collection (Civil War Classics)(H-Bar Enterprises)(1997).bin
/
hb_nstal
/
hbar.inf
< prev
next >
Wrap
Text File
|
1997-02-17
|
5KB
|
209 lines
DefineVariables
Number [ReturnVal1]
Number [ReturnVal2]
number [ReturnVal3]
Number [ErrCount]
Directory [windir]
Directory [winsdir]
Logical [EnKeyb]
Logical [NetAvail]
Logical [MathPres]
Logical [CDAvail]
Text [DispType]
Number [XMSAvail]
Number [ExtmemPagesActive]
Number [ExtmemPagesAvail]
Number [ExtMemAvail]
Number [ExtMemPres]
Number [ExpMempgavail]
Number [ExpMempgactive]
Text [osver]
Text [DosVer]
Text [EmsVer]
Text [ProdExecutable]
Text [GroupTitle]
Text [GroupFile]
Text [ExistingGroupName]
Text [InstDir]
Text [FactsIconF]
Text [IconTitle]
Text [IconFile]
EndDefineVariables
[EnKeyb] := NoCharacter
[NetAvail] := NoCharacter
[MathPres] := NoCharacter
[CDAvail] := NoCharacter
Do SetupDisplay
Do CheckHardware
if [errcount] > 1
Dialog UseHeader "Encountered Some Problems"
Our installation has encounterd the following problems,
you can continue to install or exit installation.
[Array1][1]
[Array1][2]
[Array1][3]
[Array1][4]
[Array1][5]
[Array1][6]
[Array1][7]
EndDialog
endif
:start
DialogBox 150 80 UseHeader "Installing H-Bar Install 1.0" Returns [ReturnVal1] BlackOnLightGray
Font "Helv" 8
GroupBox @xy(5,4) 135 70 "Select Option"
RadioButtonGroup Uses [ReturnVal2]
RadioButton @xy(10,17) 120 12 "&Install H-Bar"
RadioButton @xy(10,30) 120 12 "&Hardware Summary"
RadioButton @xy(10,43) 120 12 "&Exit Installation"
PushButton @xy(60,55) 38 14 "OK" OK
EndDialogBox
if [ReturnVal2] = 1
Do Install
goto start
endif
if [ReturnVal2] = 2
Do HardwareSum
Goto start
endif
if [ReturnVal2] = 3
SoLong
Endif
if [RetrunVal2] = 0
Dialog
Click on one of the option buttons.
EndDialog
Goto start
Enddialog
endif
Procedure SetupDisplay
SetDefaultBitMap Off
SetBackGroundColor 0 0 64 191 64 0 TopToBottom
SetPopupAttrTo YellowOnBlue
ShowWindow maximized
EndProcedure
Procedure Install
[installationdirectory] := h_bar
DetermineInstallationDrive
DetermineInstallationDirectory installationdrive:\[installationdirectory]
QueAllFiles
GetQuedFiles
ChangeDirectoryto [InstallationDirectory]
[ProdExecutable] := [InstallationDirectory]\vip.exe
[GroupTitle] := H-bar
[InstDir] := [InstallationDirectory]
[IconFile] := open.ico
[IconTitle] := H-Bar Open
:top
DialogBox 150 80 UseHeader "Install Icon" Returns [Number1]
Font "Helv" 8
RadioButtonGroup Uses [Number2]
RadioButton @xy(6,6) 150 12 "We can install Icon in an &existing group"
RadioButton @xy(6,20) 150 12 "Or we can install Icon in a &new group"
RadioButton @xy(6,34) 150 12 "Or we can &skip this part"
PushButton @xy(60,60) 38 14 "OK" OK
EndDialogBox
if [Number2] = 1
[Array2] := GetProgramManagerGroupNames
DialogBox 177 70 UseHeader "Choose group to install Icon in" GreenOnBlack Returns [Number7]
ListBox @xy(15,7) 120 30 Uses [String1] LoadWith [Array2] Border
PushButton @xy(60,55) 38 14 "OK" OK
EndDialogBox
[ExistingGroupName] := [String1]
if [ExistingGroupName] = BlankString
popup no group selected, not installing icon
else
ProgramManagerDDE
CreateGroup([ExistingGroupName])
AddItem([ProdExecutable],[IconTitle],[InstallationDirectory]\[IconFile])
EndProgramManagerDDE
endif
endif
if [number2] = 2
ProgramManagerDDE
CreateGroup(H-bar,[WindowsDirectory]\hbar.grp)
AddItem([ProdExecutable],[IconTitle],[InstallationDirectory]\[IconFile])
EndProgramManagerDDE
endif
if [Number2] = 3
popup not installing icon
endif
EndProcedure
Procedure CheckHardware
[Number3] := 1
[windir] := [WindowsDirectory]
[winsdir] := [WindowsSystemDirectory]
[ExtmemPagesActive] := ExtendedMemoryPagesActive
[ExtmemPagesAvail] := ExtendedMemoryPagesAvailable
[ExtMemAvail] := ExtendedMemoryAvailable
[ExtMemPres] := ExtendedMemoryPresent
[ExpMempgAvail] := ExpandedMemoryPagesAvailable
[ExpMempgActive] := ExpandedMemoryPagesActive
[osver] := OSVersion
[DosVer] := DOSVersion
[EmsVer] := EMSVersion
if [ExtmemPres] < 1000
[Array1][[number3]] := You Must have at least 1000k of memory.
IncrementNumber [number3]
endif
if [DOSVer] < 3.0
[Array1][[number3]] := You must have a DOS version of at least 3.0 or more
IncrementNumber [number3]
endif
[Errcount] := [Number3]
EndProcedure
Procedure HardwareSum
Dialog
DOS Version : [DosVer]
Extended Memory Available : [ExtMemAvail]
Extended Memory Present : [ExtMemPres]
Extended Memory Pages Active : [ExtMemPagesActive]
Extended Memory Pages Available : [ExtMemPagesAvail]
Expanded Memory Pages Available : [ExpmempgAvail]
Expanded Memory Pages Active : [ExpMempgactive]
Windows Directory : [windir]
Windows System Directory : [winsdir]
EndDialog
EndProcedure